package com.bite.book.adapter;

public class Slf4jClient {
    public static void main(String[] args) {
//        Log4j log4j = new Log4j();
//        log4j.print("Log4j打印日志");
//
//        LogBack logBack = new LogBack();
//        logBack.out("logback打印日志");

        //适配器模式
        Slf4jApi api = new Log4jSlf4jAdapter(new Log4j());
        api.log("测试打印日志");

        Slf4jApi api2 = new LogBackSlf4jAdapter(new LogBack());
        api2.log("测试打印日志");
    }
}
